package cn.ctyun.ipush.service;

import cn.ctyun.ipush.model.EmailModel;
import cn.ctyun.ipush.vo.EmailVo;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * User: user
 * Date: 16-7-4
 * Time: 上午10:50
 * To change this template use File | Settings | File Templates.
 */
public interface EmailService {

    public void save(EmailVo emailVo);
    public void save(EmailModel emailModel);

    public int delete(String emailId);

    public int update(EmailVo emailVo);
    public int update(EmailModel emailModel);

    public EmailVo querySingleResultVo(String emailId);
    public EmailModel querySingleResult(String emailId);
    public List<EmailModel> queryList(EmailModel emailModel);
    public List<EmailVo>  queryListVo(EmailVo emailVo);

    // public boolean update(String taskGroupName, String taskName, String cronExpression);

    boolean isExist(EmailVo emailVo);
    boolean isExist(EmailModel emailModel);

    List<EmailVo> queryAll();

    List<EmailVo> queryListVoByPage(EmailVo emailVo);

}
